package com.liufei1988.jvm;

public class StackOverFlowTest {
    static int count =0;
    static void redo(){
        count++;
        try {
            Thread.sleep(5);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        redo();
    }

    public static void main(String[] args) {
        try {
            redo();
        }catch (Throwable t){
            t.printStackTrace();
            System.out.println(count);
        }
    }
}
